package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsModuleGetActivityListJoinMembers;
/**
 * 点击首页版块进入版块活动列表，显示该版块下的活动列表
 * @author wliu
 * edit tse
 */
public class MomentsModuleGetActivityList extends RudderResponse{
    
    private String activityId = "";
		
    
    private String title = "";
		
    
    private String mainPic = "";
		
    
    private String desc = "";
		
    
    private List<MomentsModuleGetActivityListJoinMembers> joinMembers = new ArrayList<MomentsModuleGetActivityListJoinMembers>();
		
	
    /**
     * @return activityId
     */	
    public String getActivityId() { 
	    return this.activityId;
    };
	
	/**
     * @return activityId
     */	
    public void setActivityId(String activityId) { 
        this.activityId = activityId;
    };
    
    /**
     * @return title
     */	
    public String getTitle() { 
	    return this.title;
    };
	
	/**
     * @return title
     */	
    public void setTitle(String title) { 
        this.title = title;
    };
    
    /**
     * @return mainPic
     */	
    public String getMainPic() { 
	    return this.mainPic;
    };
	
	/**
     * @return mainPic
     */	
    public void setMainPic(String mainPic) { 
        this.mainPic = mainPic;
    };
    
    /**
     * @return desc
     */	
    public String getDesc() { 
	    return this.desc;
    };
	
	/**
     * @return desc
     */	
    public void setDesc(String desc) { 
        this.desc = desc;
    };
    
    /**
     * @return joinMembers
     */	
    public List<MomentsModuleGetActivityListJoinMembers> getJoinMembers() { 
	    return this.joinMembers;
    };
	
	/**
     * @return joinMembers
     */	
    public void setJoinMembers(List<MomentsModuleGetActivityListJoinMembers> joinMembers) { 
        this.joinMembers = joinMembers;
    };
    
	
        
    private static void filterFor(MomentsModuleGetActivityListJoinMembers moments) {
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
    }
        
    public static void filter(MomentsModuleGetActivityList moments) {
        if (moments.getActivityId() == null) {
            moments.setActivityId("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getDesc() == null) {
            moments.setDesc("");
        }
        if (moments.getJoinMembers() == null) {
            moments.setJoinMembers(new ArrayList<MomentsModuleGetActivityListJoinMembers>());
        } else {
            for (MomentsModuleGetActivityListJoinMembers item : moments.getJoinMembers()) {
                filterFor(item);
            }
        }
    }
}
